<?php $this->widget('application.components.AdminMenu',array('nameId'=>'addinformation')); ?>
<!-- Subheader -->			
<div id="subheader" class="clearfix">
	<h2>Нововсти</h2>
	<a href="#"><span>Cancel</span></a>
</div>
<!-- /End Subheader -->

<!-- Main Content Area -->			
<div style="height: max-height;" id="content">
	
	<div id="inner">
	
	<?php echo CHtml::form('/admin/qinformation/add/','post',array('enctype'=>'multipart/form-data')); ?>
		
		
	
	    <ul>
			<li>
				<!-- Large Text Input -->
				<?php echo CHtml::activelabelEx($information,'title',array("label"=>'Заголовок','for'=>'large input')); ?>
				<?php echo CHtml::activetextField($information,'title',array('class'=>'large')); ?> 			
				<?php echo CHtml::error($information,'title'); ?>
			</li>

			<li>
				<!-- Full Textarea -->
				<script type="text/javascript">
				$(document).ready(
					function()
					{
						$('#editor').editor({ focus: true });
					}
				);
				</script>
				<?php echo Chtml::activelabelEx($information,'text',array('label'=>"Содержание новости:",'for'=>'news')); ?>
				<?php  echo CHtml::activetextArea($information,'text',$htmlOptions=array('rows'=>'10','cols'=>"70%" ,'id'=>'editor')); ?>
				<?php echo Chtml::error($information,'text'); ?>
			</li>
		    
			<!-- Begin List -->
			<div class="grid_6">
			
			<li>	
				<?php echo Chtml::activelabelEx($information,'image',array('label'=>"Содержание новости:",'for'=>'news')); ?>	
				<?php echo CHtml::activeFileField($information, 'image'); ?>
				<?php echo Chtml::error($information,'image'); ?>
			
			</li>
			<li>
			 	<?php echo CHtml::activelabelEx($information,'id_cat',array('label'=>"Категория:",'for'=>'category')); ?>
				<?php echo CHtml::dropDownList('list', '1' ,
                              $list, array('class'=>'newListSelected')
                              ); ?>
				<?php echo CHtml::error($information,'text'); ?>
				</li>
				<li>
					<?php echo Chtml::activelabelEx($information,'indexf',array('label'=>"Выводить на главную?:",'for'=>'news')); ?>	
				<?php echo CHtml::activeCheckBox($information, 'indexf'); ?>
				<?php echo Chtml::error($information,'indexf'); ?>
				
				</li>
			
			</div>
			
			<!-- Buttons -->
			<div class="grid_6">
				<label for="button news">Опубликовать новость:</label>
			    <input type="submit" name="news" value="Опубликовать" class="button_white" />
			</div>
			<!-- end btn -->
			
		</ul>
<?php echo CHtml::endForm(); ?>
	    
	</div>
</div>
<!-- End Content Area -->
